package cn.ljx.dao.Impl;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import cn.ljx.dao.JobidDao;
import cn.ljx.entity.TBJobId;
import cn.ljx.mapping.TBJobidMapper;

@Repository("JobidDao")
public class JobidDaoImpl implements JobidDao {
	
	@Resource(name = "TBJobidMapper")
    private TBJobidMapper tbJobidMapper;

	public TBJobId getJobid() {
		return tbJobidMapper.getJobid();
	}

	public int updateJobid(String job_num, String id) {
		Map<String,Object> map=new HashMap<String,Object>();
		map.put("job_num", job_num);
		map.put("id", id);
		return tbJobidMapper.updateJobid(map);
	}

	
}
